<hr />

<div class="secondary">

	<div id="search"><h2><?php _e('Search','k2_domain'); ?></h2>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<br /><br />
<script type="text/javascript"><!--
google_ad_client = "<?php google_pub_id()?>";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "006699";
google_color_url = "000000";
google_color_text = "000000";
//2007-03-10: totasecu.com
google_ad_channel = "2400708302";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><br /><script type="text/javascript"><!--
google_ad_client = "<?php google_pub_id()?>";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "006699";
google_color_url = "000000";
google_color_text = "000000";
//2007-03-10: totasecu.com
google_ad_channel = "2400708302";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>

<?php /* WordPress Widget Support */ if (function_exists('dynamic_sidebar') and dynamic_sidebar()) { } else { ?>

	<?php /* Latest Entries */ if ( (is_home()) or (is_search() or (is_404()) or ($notfound == '1')) or (function_exists('is_tag') and is_tag()) or ( (is_archive()) and (!is_author()) ) ) { ?>
	<div class="sb-latest">
		<h2><?php _e('Latest','k2_domain'); ?></h2>
		<span class="metalink"><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('RSS Feed for Blog Entries','k2_domain'); ?>" class="feedlink"><img src="<?php bloginfo('template_directory'); ?>/images/feed.png" alt="RSS" /></a></span>

		<ul>
			<?php wp_get_archives('type=postbypost&limit=10'); ?>
		</ul>
	</div>
	<?php } ?>

	<?php /* Links */ if ( (is_home()) and !(is_page()) and !(is_single()) and !(is_search()) and !(is_archive()) and !(is_author()) and !(is_category()) and !(is_paged()) ) { $links_list_exist = @$wpdb->get_var("SELECT link_id FROM $wpdb->links LIMIT 1"); if($links_list_exist) { ?>
	<div class="sb-links">
		<ul>
			<?php get_links_list(); ?>
		</ul>
	</div>
	<?php } } ?>


	<?php /* Archives */ if ( (is_archive()) or (is_search()) or (is_paged()) or ($notfound == '1') or (function_exists('is_tag') and is_tag()) ) { ?>
	<div class="sb-months">
		<h2><?php _e('Archives','k2_domain'); ?></h2>
		
		<ul>
			<?php wp_get_archives('type=monthly'); ?>
		</ul>
	</div>

	<div class="sb-categories">
	
		<ul>
			<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
		</ul>
	</div>

<?php } ?>
<?Php } ?>

</div>
<div class="clear"></div>
